Reactive2DList() constructor¶
Defined in
Type: Reactive2DListReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
public Reactive2DList()public Reactive2DList(IEnumerable<IEnumerable<T>> items)public Reactive2DList(IEnumerable<ReactiveList<T>> items)public Reactive2DList(IEnumerable<T> items)public Reactive2DList(ReactiveList<T> item)public Reactive2DList(T item)
1. Overload¶
public Reactive2DList()
View source (opens in a new tab)
Summary: Initializes a new instance of the Reactive2DList class.
2. Overload¶
public Reactive2DList(IEnumerable<IEnumerable<T>> items)
View source (opens in a new tab)
Summary: Initializes a new instance of the Reactive2DList class with the specified collection of item sequences.
Parameters
| Name | Type | Description |
|---|---|---|
items | IEnumerable | A collection of sequences, where each inner sequence represents the items for a row in the two-dimensional list. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | Thrown if items is null. |
3. Overload¶
public Reactive2DList(IEnumerable<ReactiveList<T>> items)
View source (opens in a new tab)
Summary: Initializes a new instance of the Reactive2DList class with the specified collection of ReactiveList items.
Parameters
| Name | Type | Description |
|---|---|---|
items | IEnumerable | The collection of ReactiveList instances to include in the two-dimensional list. Cannot be null. |
4. Overload¶
public Reactive2DList(IEnumerable<T> items)
View source (opens in a new tab)
Summary: Initializes a new instance of the Reactive2DList class with the specified collection of items.
Parameters
| Name | Type | Description |
|---|---|---|
items | IEnumerable | The collection of items to initialize the list with. Each item will be wrapped in a ReactiveList. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | Thrown if items is null. |
5. Overload¶
public Reactive2DList(ReactiveList<T> item)
View source (opens in a new tab)
Summary: Initializes a new instance of the Reactive2DList class containing a single row initialized with the specified reactive list.
Parameters
| Name | Type | Description |
|---|---|---|
item | ReactiveList | The reactive list to use as the initial row of the two-dimensional list. Cannot be null. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | Thrown if item is null. |
6. Overload¶
public Reactive2DList(T item)
View source (opens in a new tab)
Summary: Initializes a new instance of the Reactive2DList class containing a single item.
Parameters
| Name | Type | Description |
|---|---|---|
item | T | The item to include as the initial element in the list. |